const express = require('express');
const app = express();
app.listen(4000,()=>{
    console.log('web服务器工作在4000端口');
});

//引入自定义的路由模块文件：
let userRouter = require('./3-user.js');
let qiantaiRouter = require('./4-qiantai');
console.log(userRouter,'1234');
//使用自定义的模块化路由：app.use([前缀,]回调方法);
app.use(userRouter);
app.use(qiantaiRouter);